<?php
namespace app\super\validate;
use think\Validate;
class UserValidate extends Validate{
    protected $rule = [
        'user_phone' => 'require',
        'user_username' =>'require',
        'real_name' =>'require',
        'user_post' =>'require',
        'start' =>'require',
        'user_hobby' =>'require',
        'area' =>'require',
        'city' =>'require',
        'user_signature' =>'require',
    ];
    protected $message = [
        'user_phone.require' => '手机号码不能为空',
        'user_username.require' => '昵称不能为空',
        'real_name.require' => '真实姓名不能为空',
        'user_post.require' => '职务不能为空',
        'start.require' => '出生日期不能为空',
        'user_hobby.require' => '兴趣爱好不能为空',
        'city.require' => '市区不能不能为空',
        'area.require' => '区不能为空',
        'user_signature.require' => '简介不能为空',
    ];
}